<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		
			
			var age = 100;
			var name = "张三";
			
			var args1;
			console.log(typeof args1);
			args1 = 200.01;
			console.log(typeof args1);
			args1 = "abcd";
			console.log(typeof args1);
			
			
			for(var i = 1; i <= 12; i++){
				console.log(i);
			}
			
			//var i = 100;
			var i = 200;
			var i = "abc";
			var i = 1;
			while(i<=100){
				console.log(i++);
			}
			
			//console.log(typeof args1);
			
			//javascript是动态数据类型
			//声明变量时不用指定类型
			
			
			
			function fun1(num1,num2){
				return num1+num2;
			}
			
			
			var result = fun1(100,200);
			console.log(result);
			
			// int fun1(int num1, int num2){
			// 	return num1+num2;
			// }
		</script>
	</head>
	<body>
	</body>
</html>
